<?php 
defined('_JEXEC') or die; 
/**
 * @package pmapi
 * @copyright Copyright (c)2014 Enrico Fagnoni
 * @license GNU General Public License version 3, or later
 *
 * @since 1.0.0
 */
 
// shortcuts
$m = $this->manufacturer;
?>
<?=$this->getTurtlePrefixes()?> 
@prefix : <#> .

<?=$this->getDefaultMetadata()?>
<>  foaf:primaryTopic :this ;
    void:inDataset <<?=UriHelper::mkResourceURI('manufacturers',null,'dataset')?>> ;
.

:this a gr:BusinessEntity ;
    a vcard:Organization;
    dcterms:subject o:manufacturer ;
    vcard:fn """<?=$m->mf_name?>""" ;
<?php if (!empty($m->mf_email)): ?>
    vcard:hasEmail [
        a vcard:Email ;
        vcard:hasValue "<?=$m->mf_email?>" 
    ] ;
<?php endif?>
<?php if (!empty($m->mf_url)): ?>
    foaf:homepage <<?=$m->mf_url?>>  ;
<?php endif?>
.
<?php if($m->mf_desc):?>
:this pm:hasRichDescription :richDescription .
:richDescription a pm:RichDescription ;
    dcterms:format "text/html" ;
    pm:hasRichDescriptionValue <?=ApiHelper::_T($m->mf_desc)?> ;
.
<?php endif ?>

<?php foreach( $this->show_images as $image):?>
:this <?=$this->getDepictionMetadata($image)?> .
<?php endforeach ?>
<?php 
if(JDEBUG){
    echo "#------------------ START DEBUGGING INFO -------------------------\n#";
    //print_r($this);
    echo preg_replace("/\n/", "\n#", ApiHelper::debugInfo($m));
    echo "\n#------------------ END DEBUGGING INFO -------------------------\n";
}
?>
